package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 肉鸡销售对象 tb_chicken_sales_info
 * 
 * @author codeman
 * @date 2024-05-08
 */
public class TbChickenSalesInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long saleId;

    /** 销售日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleDate;

    /** 客户 */
    @Excel(name = "客户")
    private Long customerId;

    /** 销售重量 */
    @Excel(name = "销售重量")
    private BigDecimal saleWeight;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private BigDecimal salePrice;

    /** 销售成本 */
    @Excel(name = "销售成本")
    private BigDecimal saleCost;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private BigDecimal saleAmount;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 肉鸡出栏信息 */
    private List<TbChickenOutRegistry> tbChickenOutRegistryList;

    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setSaleDate(Date saleDate) 
    {
        this.saleDate = saleDate;
    }

    public Date getSaleDate() 
    {
        return saleDate;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setSaleWeight(BigDecimal saleWeight) 
    {
        this.saleWeight = saleWeight;
    }

    public BigDecimal getSaleWeight() 
    {
        return saleWeight;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }
    public void setSaleCost(BigDecimal saleCost) 
    {
        this.saleCost = saleCost;
    }

    public BigDecimal getSaleCost() 
    {
        return saleCost;
    }
    public void setSaleAmount(BigDecimal saleAmount) 
    {
        this.saleAmount = saleAmount;
    }

    public BigDecimal getSaleAmount() 
    {
        return saleAmount;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<TbChickenOutRegistry> getTbChickenOutRegistryList()
    {
        return tbChickenOutRegistryList;
    }

    public void setTbChickenOutRegistryList(List<TbChickenOutRegistry> tbChickenOutRegistryList)
    {
        this.tbChickenOutRegistryList = tbChickenOutRegistryList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("saleDate", getSaleDate())
            .append("customerId", getCustomerId())
            .append("saleWeight", getSaleWeight())
            .append("salePrice", getSalePrice())
            .append("saleCost", getSaleCost())
            .append("saleAmount", getSaleAmount())
            .append("customerName", getCustomerName())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("tbChickenOutRegistryList", getTbChickenOutRegistryList())
            .toString();
    }
}
